/**
 * 微信支付配置文件（共享）
 */
const path = require('path');

module.exports = {
    APPID: process.env.WXPAY_APPID || 'wx5ca4649021d27e03',
    MCHID: process.env.WXPAY_MCHID || '1729831097',
    API_V3_KEY: process.env.WXPAY_API_V3_KEY || 'k9RmP2sL8wQ4zXvB6tNcY3aH7jGfD1qE',
    SERIAL_NO: process.env.WXPAY_SERIAL_NO || '17BE1BD8822EEDA2974A735E1967BA0DDB58FFAF',
    // 证书路径相对于此文件所在目录
    PLATFORM_CERT_PATH: path.join(__dirname, '../cloud/pay/wechatpay_pub_key.pem'),
    MCH_PRIVKEY_PATH: path.join(__dirname, '../cloud/pay/apiclient_key.pem'),
    MCH_CERT_PATH: path.join(__dirname, '../cloud/pay/apiclient_cert.pem'),
    NOTIFY_BASE_URL: process.env.WXPAY_NOTIFY_BASE_URL || 'https://superbebepet.com'
};

